<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:77:"/www/wwwroot/api.bjxlxd.com/public/../application/admin/view/index/index.html";i:1597137289;s:67:"/www/wwwroot/api.bjxlxd.com/application/admin/view/public/menu.html";i:1598405662;s:69:"/www/wwwroot/api.bjxlxd.com/application/admin/view/public/header.html";i:1597137338;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>后台管理</title>
    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://makeweb.rookie.group/images/logo.png">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://makeweb.rookie.group/images/logo.png">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://makeweb.rookie.group/images/logo.png">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://makeweb.rookie.group/images/logo.png">
    <!-- Styles -->
    <link href="/static/admin/other/fontawesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/themify-icons.css" rel="stylesheet">
    <link href="/static/admin/css/lib/mmc-chat.css" rel="stylesheet" />
    <link href="/static/admin/css/lib/sidebar.css" rel="stylesheet">
    <link href="/static/admin/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/nixon.css" rel="stylesheet">
    <link href="/static/admin/css/lib/toastr/toastr.min.css" rel="stylesheet">
    <link href="/static/admin/other/lib/lobipanel/css/lobipanel.min.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
</head>

<body>
    <div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
    <div class="nano">
        <div class="nano-content">
            <ul>
                <li><a href="/admin/Index"><i class="ti-home"></i> 数据概览</a></li>

                <?php if(in_array((\think\Cookie::get('admin_id')), explode(',',"1"))): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="ti-layout-grid4-alt"></i> 后台栏目管理 <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <li><a href="/admin/Menu">栏目列表</a></li>
                    </ul>
                </li>
                <li><a href="/admin/AdminUser"><i class="ti-github"></i> 后台管理员</a></li>
                <?php endif; if(is_array($topMenu) || $topMenu instanceof \think\Collection || $topMenu instanceof \think\Paginator): $i = 0; $__LIST__ = $topMenu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(!empty($vo['secondMenu'])): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?> <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <?php if(is_array($vo['secondMenu']) || $vo['secondMenu'] instanceof \think\Collection || $vo['secondMenu'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['secondMenu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vi): $mod = ($i % 2 );++$i;?>
                        <li><a href="/admin/<?php echo $vi['class']; ?>"><?php echo $vi['name']; ?></a></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </li>
                <?php else: ?>
                <li><a href=""><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a></li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                <!--<li><a href="/admin/loginOut"><i class="ti-close"></i> Logout</a></li>-->
            </ul>
        </div>
    </div>
</div>
    <!-- /# sidebar -->
    
<div class="header">
    <div class="pull-left">
        <div class="logo">
            <a href="index.html"></a>
        </div>
        <div class="hamburger sidebar-toggle">
            <span class="ti-menu"></span>
        </div>
    </div>
    <div class="pull-right p-r-15">
        <ul>
            <li class="header-icon dib">
                <i class="ti-bell"></i>
                <div class="note-count">0</div>
                <div class="drop-down">
                    <div class="dropdown-content-body">
                        <ul>
                            <li>
                                <a href="/admin/demandList">
                                    <div class="notification-content">
                                        <div class="notification-heading">&nbsp;</div>
                                        <div class="notification-heading">有新的活动需求单</div>
                                        <div class="notification-heading">&nbsp;</div>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </li>

            <li class="header-icon dib">
                <img class="avatar-img" src="/static/admin/img/avatar/1.jpg" alt="" /> <span class="user-avatar"><?php echo \think\Cookie::get('admin_name'); ?> </span>
            </li>
        </ul>
    </div>
</div>


<script>
    window.onload = function(){
        getNum();
    }
    var ref = "";
    ref = setInterval(function(){
        getNum();
    },10000);
    function getNum(){
        $.ajax({
            type: 'POST',
            url: '/admin/Demand/getNum',
            data:{
            },
            dataType: 'json',
            success: function(data){
                $(".note-count").html(data.num);
            },
        });
    }
</script>

    <div class="content-wrap">
        <div class="main">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-8 p-0">
                        <div class="page-header">
                            <div class="page-title">
                                <h1></h1>
                            </div>
                        </div>
                    </div>
                    <!-- /# column -->
                    <div class="col-lg-4 p-0">
                        <div class="page-header">
                            <div class="page-title">

                            </div>
                        </div>
                    </div>
                </div>
                <!-- /# row -->
                <div class="main-content">
                    <form action="/admin/Index" method="post">
                        <input type="hidden" name="a" value="1">
                        <div class="toastr">
                            <button type="submit" class="btn btn-danger m-b-10 m-l-5" id="toastr-danger-top-full-width-index">&nbsp;&nbsp;&nbsp;&nbsp;更新&nbsp;&nbsp;&nbsp;&nbsp;</button>
                        </div>

                    </form>

                    <div class="row">
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="stat-icon dib"><i class="ti-user color-primary border-primary"></i></div>
                                    <div class="stat-content dib">
                                        <div class="stat-text">APP用户数量</div>
                                        <div class="stat-digit"><?php echo $rs['user']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">企业</div>
                                        <div class="stat-digit"><?php echo $rs['user_a']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">酒店</div>
                                        <div class="stat-digit"><?php echo $rs['user_b']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">商家</div>
                                        <div class="stat-digit"><?php echo $rs['user_c']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">非会员</div>
                                        <div class="stat-digit"><?php echo $rs['user_d']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="stat-icon dib"><i class="ti-pencil-alt color-success border-success"></i></div>
                                    <div class="stat-content dib">
                                        <div class="stat-text">需求数量</div>
                                        <div class="stat-digit"><?php echo $rs['demand']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">已解决</div>
                                        <div class="stat-digit " style="color: lawngreen;"><?php echo $rs['demand_a']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">未解决</div>
                                        <div class="stat-digit" style="color: red;"><?php echo $rs['demand_b']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">已关闭</div>
                                        <div class="stat-digit"><?php echo $rs['demand_c']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="stat-icon dib"><i class="ti-cup color-pink border-pink"></i></div>
                                    <div class="stat-content dib">
                                        <div class="stat-text">酒店合作数量</div>
                                        <div class="stat-digit"><?php echo $rs['hotel']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">北京</div>
                                        <div class="stat-digit"><?php echo $rs['hotel_a']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">天津</div>
                                        <div class="stat-digit"><?php echo $rs['hotel_b']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="stat-icon dib"><i class="ti-video-camera color-danger border-danger"></i></div>
                                    <div class="stat-content dib">
                                        <div class="stat-text">视频组</div>
                                        <div class="stat-digit"><?php echo $rs['video']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">预知现场组</div>
                                        <div class="stat-digit"><?php echo $rs['video_a']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">录制活动组</div>
                                        <div class="stat-digit"><?php echo $rs['video_b']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">大型活动组</div>
                                        <div class="stat-digit"><?php echo $rs['video_c']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="stat-icon dib"><i class="ti-star color-danger border-danger"></i></div>
                                    <div class="stat-content dib">
                                        <div class="stat-text">问卷数量</div>
                                        <div class="stat-digit"><?php echo $rs['questionnaire']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">银行</div>
                                        <div class="stat-digit"><?php echo $rs['questionnaire_a']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">财务</div>
                                        <div class="stat-digit"><?php echo $rs['questionnaire_b']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">法律</div>
                                        <div class="stat-digit"><?php echo $rs['questionnaire_c']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="stat-icon dib"><i class="ti-briefcase color-pink border-pink"></i></div>
                                    <div class="stat-content dib">
                                        <div class="stat-text">产品总数量</div>
                                        <div class="stat-digit"><?php echo $rs['goods']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">已交付</div>
                                        <div class="stat-digit"><?php echo $rs['goods_a']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">未交付</div>
                                        <div class="stat-digit"><?php echo $rs['goods_b']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="stat-icon dib"><i class="ti-flag-alt-2 color-success border-success"></i></div>
                                    <div class="stat-content dib">
                                        <div class="stat-text">活动订单数量</div>
                                        <div class="stat-digit"><?php echo $rs['active']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">已完成</div>
                                        <div class="stat-digit"><?php echo $rs['active_a']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="card">
                                <div class="stat-widget-one">
                                    <div class="profile-widget">
                                        <div class="stat-text">未完成</div>
                                        <div class="stat-digit"><?php echo $rs['active_b']; ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
 <!-- /# container-fluid -->
    </div>
<!-- /# main -->
    </div>
<script src="/static/admin/js/lib/jquery.min.js"></script>
<script src="/static/admin/js/lib/jquery.nanoscroller.min.js"></script>
<script src="/static/admin/js/lib/sidebar.js"></script>
<script src="/static/admin/js/lib/bootstrap.min.js"></script>
<script src="/static/admin/js/lib/mmc-common.js"></script>
<script src="/static/admin/js/lib/mmc-chat.js"></script>
<script src="/static/admin/other/lib/lobipanel/js/lobipanel.js"></script>
<script src="/static/admin/js/lib/toastr/toastr.min.js"></script><!-- scripit init-->
<script src="/static/admin/js/lib/toastr/toastr.init.js"></script><!-- scripit init-->
<script src="/static/admin/js/scripts.js"></script>
<script>
    $(document).ready(function() {
        $('#lobipanel-custom-control').lobiPanel({
            reload: false,
            close: false,
            editTitle: false
        });
    });

    $('#toastr-danger-top-full-width-index').click(function() {
        toastr.error('更新中请勿操作','更新提示',{
            "positionClass": "toast-top-full-width",
            timeOut: 5000,
            "closeButton": true,
            "debug": false,
            "newestOnTop": true,
            "progressBar": true,
            "preventDuplicates": true,
            "onclick": null,
            "showDuration": "300",
            "hideDuration": "1000",
            "extendedTimeOut": "1000",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut",
            "tapToDismiss": false

        })
    });
</script>
</body>

</html>